$def with (md5, contenido, tipo, recurso)
$var title: Viewer ($md5)
$var search_form: True

$if recurso:
	$var jquery:
		var check_class = new only_one_send();
		var clases = new all_classes(function(){
			$$.each(clases.toArray(), function(key, value) {
				check_class.setValue(value, value);
			});
		}, "../../");
		check_class.doNotFound = function(elem, clave){
			if(clases._classes != null && clases.hasClase(clave))
				this.setValue(clave, clave);
		};
		check_class.printValue = function(elem, value){
			var key = value.replace(new RegExp('\\.', "g"),"/");
			elem.innerHTML = '<a href="./'+value+'">L'+key+';</a>';
		};
		check_class.getKeyByElem = function(elem){
			var ret = elem.textContent.replace(new RegExp('^L|;$$', "g"),"");
			return ret.replace(new RegExp('/', "g"),".");
		};
	
		clases.load();
		</script>
		<script language='javascript' src='/static/SyntaxHighlighter/shCore.js'></script>
		<script language='javascript' src='/static/SyntaxHighlighter/shBrushXml.js'></script>
		<script language='javascript' src='/static/SyntaxHighlighter/shBrushDdx.js'></script>
		<script language='javascript' src='/static/SyntaxHighlighter/shBrushSmali.js'></script>
		<script language='javascript'>
		var reintento_link = null;
		function colorea(){
			dp.SyntaxHighlighter.ClipboardSwf = '/static/SyntaxHighlighter/clipboard.swf';
			dp.SyntaxHighlighter.HighlightAll('code');
			$$("h2.cargando").remove();
		}
		$$(document).ready( function() {
			$$('#busca_ya').click(function(){
				new VentanaBusquedaAJAX("/static/reports/$md5/", clases, $$('#busca_text').attr("value"));
			});
		var stack_arroba_num = createStackArrobaNum("../../");
		$$('#colorea').click(function(){
		    colorea();
		    procesar_xml(false, false, stack_arroba_num);
		    $$('#colorea').hide();
		});
		});
$else:
	$var jquery:
		var check_class = new only_one_send();
		var stack_arroba_num = createStackArrobaNum();
		var clases = new all_classes(function(){
			$$.each(clases.toArray(), function(key, value) {
				check_class.setValue(value, value);
			});
		});
		check_class.doNotFound = function(elem, clave){
			if(clases._classes != null && clases.hasClase(clave))
				this.setValue(clave, clave);
		};
		check_class.printValue = function(elem, value){
			var key = value.replace(new RegExp('\\.', "g"),"/");
			elem.innerHTML = '<a href="./'+value+'">L'+key+';</a>';
		};
		check_class.getKeyByElem = function(elem){
			var ret = elem.textContent.replace(new RegExp('^L|;$$', "g"),"");
			return ret.replace(new RegExp('/', "g"),".");
		};
	
		clases.load();
		</script>
		<script language='javascript' src='/static/SyntaxHighlighter/shCore.js'></script>
		<script language='javascript' src='/static/SyntaxHighlighter/shBrushXml.js'></script>
		<script language='javascript' src='/static/SyntaxHighlighter/shBrushDdx.js'></script>
		<script language='javascript' src='/static/SyntaxHighlighter/shBrushSmali.js'></script>
		<script language='javascript'>
		var reintento_link = null;
		function colorea(){
			dp.SyntaxHighlighter.ClipboardSwf = '/static/SyntaxHighlighter/clipboard.swf';
			dp.SyntaxHighlighter.HighlightAll('code');
			$$("h2.cargando").remove();
		}
		$$(document).ready( function() {
			$$('#busca_ya').click(function(){
				new VentanaBusquedaAJAX("/static/reports/$md5/", clases, $$('#busca_text').attr("value"));
			});
		$$('#hiden_comment').hide();
		$$('#hiden_comment').click(function(){ $$('.comment').parent().parent().toggle(); });
		$$('#colorea').click(function(){
		    colorea();
		    procesar_codigo(check_class, stack_arroba_num);
		    $$('#colorea').hide();
		    $$('#hiden_comment').show();
		});
		});

$if not recurso:
	<a href="./">Volver al reporte</a>
	<input type="button" id="hiden_comment" value="Oculta/Muestra comentarios"/>
$else:
	<a href="./../../">Volver al reporte</a>
<input type="button" id="colorea" value="Colorea el c&oacute;digo"/>
<pre name="code" class="$tipo">
$contenido
</pre>

